<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
    
    <head>
        <meta charset="UTF-8">
        <title>成绩查看</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script src="./lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
    </head>
    
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <form class="layui-form layui-col-space5">
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input class="layui-input" placeholder="开始日" name="start" id="start"></div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input class="layui-input" placeholder="截止日" name="end" id="end"></div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <select name="contrller">
                                        <option>支付方式</option>
                                        <option>支付宝</option>
                                        <option>微信</option>
                                        <option>货到付款</option></select>
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <select name="contrller">
                                        <option value="">订单状态</option>
                                        <option value="0">待确认</option>
                                        <option value="1">已确认</option>
                                        <option value="2">已收货</option>
                                        <option value="3">已取消</option>
                                        <option value="4">已完成</option>
                                        <option value="5">已作废</option></select>
                                </div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input type="text" name="username" placeholder="请输入订单号" autocomplete="off" class="layui-input"></div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <button class="layui-btn" lay-submit="" onclick="delAll()" >
                                        <!--lay-filter="sreach"-->
                                        <i class="layui-icon">&#xe615;</i></button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-card-body ">
                            <table class="layui-table layui-form" id="score">
                                <thead>
                                    <tr>
                                        <th>
                                            <input type="checkbox" name="" lay-skin="primary">
                                        </th>
                                        <th>序号</th>
                                        <th>学年学期</th>
                                        <th>课程编号</th>
                                        <th>课程名称</th>
                                        <th>课程性质</th>
                                        <th>总成绩</th>
                                        <th>平时成绩</th>
                                        <th>实验成绩</th>
                                        <th>期末成绩</th>
                                        <th>绩点</th>
                                        <th>学分</th>
                                    </tr>
                                </thead>
                                <tbody >
                                    <tr th:each="course:${#request.getAttribute('userCourseList')}"th:object="${course}">

                                        <td>
                                            <input type="checkbox" name="" lay-skin="primary"></td>
                                        <td th:text="${courseStat.count}">序号</td>
                                        <td>学年学期</td>
                                        <td th:text="*{id}">课程编号</td>
                                        <td th:text="*{name}">课程名称</td>
                                        <td th:text="*{property.getValue()}">课程性质</td>
                                        <td th:text="${#request.getAttribute('userScoreList')[courseStat.index]}">总成绩</td>
                                        <td th:text="${#request.getAttribute('userBehaveScoreList')[courseStat.index]}">平时成绩</td>
                                        <td th:text="${#request.getAttribute('userExperimentScoreList')[courseStat.index]}">实验成绩</td>
                                        <td th:text="${#request.getAttribute('userLastScoreList')[courseStat.index]}">期末成绩</td>
                                        <td th:text="${#request.getAttribute('userScoreList')[courseStat.index]} lt 60?'不及格':(${#request.getAttribute('userScoreList')[courseStat.index]}-50)/10">绩点</td>
                                        <td th:text="*{credit}">学分</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    <script>layui.use(['laydate', 'form'],
        function() {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#start' //指定元素
            });

            //执行一个laydate实例
            laydate.render({
                elem: '#end' //指定元素
            });
        });


        </script>

</html>